package com.xrh.tank;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;

/**
 * @author 肖荣辉
 * @function 墙体(此类未被应用)
 * @date 2014-3-3
 */
public class Wall {
	int x,y,w,h;
	TankClient tc;
	
	public Wall(int x, int y, int w, int h, TankClient tc) {
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
		this.tc = tc;
	}
	
	//画出墙体
	public void draw(Graphics g){
		Color c=g.getColor();
		//Color myColor=new Color(0, false) ;透明
		//g.setColor(myColor);
		g.drawRect(x, y, w, h);
		g.setColor(c);
	}
	
	//返回墙体矩形
	public Rectangle getRect(){
		return new Rectangle(x, y, w, h);
	}
}
